Part Number Hot Search : 
HD64177 1S30P05 EP2890 RF105 BYW80 PMAD1106 12716 XXXSE
Product Description
Full Text Search
 

To Download ATTINY828R-AU Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  8371as?avr?08/12 features z high performance, low power atmel ? avr ? 8-bit microcontroller z advanced risc architecture z 123 powerful instructions ? most single clock cycle execution z 32 x 8 general purpose working registers z fully static operation z up to 20 mips throughput at 20 mhz z non-volatile program and data memories z 8k bytes of in-system programmable flash program memory z endurance: 10,000 write/erase cycles z 256 bytes of in-system programmable eeprom z endurance: 100,000 write/erase cycles z 512 bytes internal sram z optional boot code secti on with independent lock bits z data retention: 20 years at 85 o c / 100 years at 25 o c z peripheral features z one 8-bit and one 16-bit timer/counter with two pwm channels, each z programmable ultra low power watchdog timer z on-chip analog comparator z 10-bit analog to digital converter z 28 external and 4 internal, single-ended input channels z full duplex usart with start frame detection z master/slave spi serial interface z slave i 2 c serial interface z special microcontroller features z low power idle, adc noise reduction, and power-down modes z enhanced power-on reset circuit z programmable brown-out detection circuit with supply voltage sampling z external and internal interrupt sources z pin change interrupt on 28 pins z calibrated 8mhz oscillator wit h temperature calibration option z calibrated 32khz ultra low power oscillator z high-current drive capability on 8 i/o pins z i/o and packages z 32-lead tqfp, and 32-pad qfn/mlf: 28 programmable i/o lines z speed grade z 0 ? 2 mhz @ 1.7 ? 1.8v z 0 ? 4 mhz @ 1.8 ? 5.5v z 0 ? 10 mhz @ 2.7 ? 5.5v z 0 ? 20 mhz @ 4.5 ? 5.5v attiny828 8-bit avr microcontroller with 8k bytes in-system programmable flash datasheet summary
2 attiny828 [datasheet] 8371as?avr?08/12 z low power consumption z active mode: 0.2 ma at 1.8v and 1mhz z idle mode: 30 a at 1.8v and 1mhz z power-down mode (wdt enabled): 1 a at 1.8v z power-down mode (wdt disabled): 100 na at 1.8v 1. pin configurations figure 1. attiny828 pinout in mlf32. figure 2. attiny828 pinout in tqfp32. 1 2 3 4 5 6 7 8 24 23 22 21 20 19 18 17 32 31 30 29 28 27 26 25 9 10 11 12 13 14 15 16 ( pcint18/ adc18/ tocc2/ rxd/ int1) pc2 (pcint19/ adc19/ tocc3/ txd) pc3 (pcint20/ adc20/ tocc4) pc4 vcc gnd (pcint21/ adc21/ tocc5/ icp1/ t0) pc5 (pci nt22/ adc22/ clki / tocc6) pc6 (pcint23/ adc23/ tocc7/ t1) pc7 pb5 (pcint13/ adc1 3) pb4 (pcint12/ adc1 2) pb3 (pcint11/ adc1 1) gnd pb2 (pcint10/ adc1 0) pb1 (pcint9/ adc9) avcc pb0 (pcint8/ adc8) (pci nt0/ adc0) pa0 ( pcint1/ adc1/ ain0) pa1 ( pcint2/ adc2/ ain1) pa2 (pci nt3/ adc3) pa3 (pci nt4/ adc4) pa4 (pci nt5/ adc5) pa5 (pci nt6/ adc6) pa6 (pci nt7/ adc7) pa7 pc1 (pcint17/ adc17/ tocc1/ int0/ clk o) pc0 (pcint16/ adc16/ tocc0/ ss/ xck) pd3 (pcint27/ adc27/ scl/ sck) pd2 (pcint26/ adc26/ reset/ dw) pd1 (pcint25/ adc25/ miso) pd0 (pcint24/ adc24/ sda/ mosi) pb7 (pcint15/ adc15) pb6 (pcint14/ adc14) note: bottom pad should be soldered t o ground 1 2 3 4 5 6 7 8 24 23 22 21 20 19 18 17 32 31 30 29 28 27 26 25 9 10 11 12 13 14 15 16 pc1 (pcint17/ adc17/ tocc1/ int0/ clko) pc0 (pcint16/ adc16/ tocc0/ ss/ xck) pd3 (pcint27/ adc27/ scl/ sck) pd2 (pcint26/ adc26/ reset/ dw) pd1 (pcint25/ adc25/ miso) pd0 (pcint24/ adc24/ sda/ mosi) pb7 (pcint15/ adc15) pb6 (pcint14/ adc14) pb5 (pcint13/ adc13) pb4 (pcint12/ adc12) pb3 (pcint11/ adc11) gnd pb2 (pcint10/ adc10) pb1 (pcint9/ adc9) avcc pb0 (pcint8/ adc8) (pci nt0/ adc0) pa0 (pci nt1/ adc1/ ai n0) pa1 (pci nt2/ adc2/ ai n1) pa2 (pci nt3/ adc3) pa3 (pci nt4/ adc4) pa4 (pci nt5/ adc5) pa5 (pci nt6/ adc6) pa6 (pci nt7/ adc7) pa7 (pcint18/ adc18/ tocc2/ rxd/ int1) pc2 (pcint19/ adc19/ tocc3/ txd) pc3 (pcint20/ adc20/ tocc4) pc4 vcc gnd (pcint21/ adc21/ tocc5/ icp1/ t0) pc5 (pci nt22/ adc22/ clki / tocc6) pc6 (pcint23/ adc23/ tocc7/ t1) pc7
3 attiny828 [datasheet] 8371as?avr?08/12 1.1 pin description 1.1.1 vcc supply voltage. 1.1.2 avcc av cc is the supply voltage pin for the a/d converter and a selection of i/o pins. this pin should be externally connected to v cc even if the adc is not used. if the adc is used, it is recommended this pin is connected to v cc through a low-pass filter, as described in ?noise canceling techniques? on page 145 . all pins of port a and port b are powered by av cc . all other i/o pins take their supply voltage from v cc . 1.1.3 gnd ground. 1.1.4 reset reset input. a low level on this pin for longer than the minimum pulse length will generate a reset, even if the clock is not running and provided the reset pin has not been di sabled. the minimum pulse length is given in table 107 on page 250 . shorter pulses are not guaranteed to generate a reset. the reset pin can also be used as a (weak) i/o pin. 1.1.5 port a (pa7:pa0) this is an 8-bit, bi-directional i/o port wi th internal pull-up resistors (selected for each bit). output buffers have high sin k and standard source capability. see table 107 on page 250 for port drive strength. as inputs, port pins that are externally pulled low will source current provided that pull-up resistors are activated. port pins are tri-stated when a reset condition becomes active, even if the clock is not running. this port has alternative pin functions for pin chang e interrupts, the analog comparator, and adc. see ?alternative port functions? on page 63 . 1.1.6 port b (pb7:pb0) this is an 8-bit, bi-directional i/o port wi th internal pull-up resistors (selected for each bit). output buffers have high sin k and standard source capability. see table 103 on page 247 for port drive strength. as inputs, port pins that are externally pulled low will source current provided that pull-up resistors are activated. port pins are tri-stated when a reset condition becomes active, even if the clock is not running. this port has alternative pin functions for pin change interrupts, and adc. see ?alternative port functions? on page 63 . 1.1.7 port c (pc7:pc0) this is an 8-bit, bi-directional i/o port wi th internal pull-up resistors (selected for each bit). output buffers have high sin k and standard source capability. optionally, extra high sink capability can be enabled. see table 103 on page 247 for port drive strength. as inputs, port pins that are externally pulled low will source current provided that pull-up resistors are activated. port pins are tri-stated when a reset condition becomes active, even if the clock is not running. this port has alternative pin functions for pin change interr upts, adc, timer/counter, external interrupts, and serial interfaces. see ?alternative port functions? on page 63 . 1.1.8 port d (pd3:pd0) this is a 4-bit, bi-directional i/o port with internal pull-up re sistors (selected for each bit). output buffers of pd0 and pd3 have symmetrical drive characteristics, with both sink and source capability. output buffer pd1 has high sink and
4 attiny828 [datasheet] 8371as?avr?08/12 standard source capability, while pd2 only has weak driv e characteristics due to its use as a reset pin. see table 103 on page 247 for port drive strength. as inputs, port pins that are externally pulled low will source current provided that pull-up resistors are activated. port pins are tri-stated when a reset condition becomes active, even if the clock is not running. this port has alternative pin functions for pin change interrupts, adc, serial interfaces, and debugwire. see ?alternative port functions? on page 63 .
5 attiny828 [datasheet] 8371as?avr?08/12 2. overview attiny828 is a low-power cmos 8-bit microcontrollers based on the avr enhanced risc architecture. by executing powerful instructions in a single clock cycle, the attiny 828 achieves throughputs approaching 1 mips per mhz allowing the system designer to optimize power consumption versus processing speed. figure 3. block diagram the avr core combines a rich instruction set with 32 general purpose working registers. all 32 registers are directly connected to the arithmetic logic unit (alu), allowing two independent registers to be accessed in a single instruction, executed in one clock cycle. the resulting architecture is compact and code efficient while achieving throughputs up to ten times faster than conventional cisc microcontrollers. debug interface calibrated ulp oscillator watchdog timer calibrated oscillator timing and control v cc reset gnd 8-bit data bus pd[3:0] cpu core program memory (flash) data memory (sram) power supervision: por bod reset isp interface port a port b port c port d voltage reference multiplexer analog comparator adc temperature sensor 8-bit timer/counter 16-bit timer/counter two-wire interface usart eeprom on-chip debugger pc[7:0] pb[7:0] pa[7:0]
6 attiny828 [datasheet] 8371as?avr?08/12 attiny828 provides the following features: z 8k bytes of in-system programmable flash z 512 bytes of sram data memory z 256 bytes of eeprom data memory z 28 general purpose i/o lines z 32 general purpose working registers z an 8-bit timer/counter with two pwm channels z a16-bit timer/counter with two pwm channels z internal and external interrupts z a 10-bit adc with 4 internal and 28 external chanels z an ultra-low power, programmable watchdog timer with internal oscillator z a programmable usart with start frame detection z a slave, i 2 c compliant two-wire interface (twi) z a master/slave serial peripheral interface (spi) z a calibrated 8mhz oscillator z a calibrated 32khz, ultra low power oscillator z three software selectable power saving modes. the device includes the following modes for saving power: z idle mode: stops the cpu while allowing the timer/c ounter, adc, analog comparator, spi, twi, and interrupt system to continue functioning z adc noise reduction mode: minimizes switching noise dur ing adc conversions by stopping the cpu and all i/o modules except the adc z power-down mode: registers keep their contents and all chip functions are disabled until the next interrupt or hardware reset the device is manufactured using atmel?s high density non-volatile memory technology. the flash program memory can be re-programmed in-system through a serial interface, by a conventional non-volatile memory programmer or by an on- chip boot code, running on the avr core. the boot program can use any interface to download the application program to the flash memory. software in the boot section of the flash executes while the application section of the flash is updated, providing true read-while-write operation. the attiny828 avr is supported by a full suite of progra m and system development tools including: c compilers, macro assemblers, program debugger/simulators and evaluation kits.
7 attiny828 [datasheet] 8371as?avr?08/12 3. general information 3.1 resources a comprehensive set of drivers, application notes, data s heets and descriptions on development tools are available for download at http://www.atmel.com/avr. 3.2 code examples this documentation contains simple code examples that briefly show how to use various parts of the device. these code examples assume that the part specific header file is included before compilation. be aware that not all c compiler vendors include bit definitions in the header files and interr upt handling in c is compiler dependent. please confirm with the c compiler documentation for more details. 3.3 data retention reliability qualification results show that the projected data retention failure rate is much less than 1 ppm over 20 years at 85c or 100 years at 25c.
8 attiny828 [datasheet] 8371as?avr?08/12 4. register summary address name bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 page(s) (0xff) reserved ? ? ? ? ? ? ? ? (0xfe) reserved ? ? ? ? ? ? ? ? (0xfd) reserved ? ? ? ? ? ? ? ? (0xfc) reserved ? ? ? ? ? ? ? ? (0xfb) reserved ? ? ? ? ? ? ? ? (0xfa) reserved ? ? ? ? ? ? ? ? (0xf9) reserved ? ? ? ? ? ? ? ? (0xf8) reserved ? ? ? ? ? ? ? ? (0xf7) reserved ? ? ? ? ? ? ? ? (0xf6) reserved ? ? ? ? ? ? ? ? (0xf5) reserved ? ? ? ? ? ? ? ? (0xf4) reserved ? ? ? ? ? ? ? ? (0xf3) reserved ? ? ? ? ? ? ? ? (0xf2) reserved ? ? ? ? ? ? ? ? (0xf1) osctcal0b oscillator temperature compensation register b page 33 (0xf0) osctcal0a oscillator temperature compensation register a page 33 (0xef) reserved ? ? ? ? ? ? ? ? (0xee) reserved ? ? ? ? ? ? ? ? (0xed) reserved ? ? ? ? ? ? ? ? (0xec) reserved ? ? ? ? ? ? ? ? (0xeb) reserved ? ? ? ? ? ? ? ? (0xea) reserved ? ? ? ? ? ? ? ? (0xe9) tocpmsa1 tocc7s1 tocc7s0 tocc6s1 tocc6s0 tocc5s1 tocc5s0 tocc4s1 tocc4s0 page 127 (0xe8) tocpmsa0 tocc3s1 tocc3s0 tocc2s1 tocc2s0 tocc1s1 tocc1s0 tocc0s1 tocc0s0 page 127 (0xe7) reserved ? ? ? ? ? ? ? ? (0xe6) reserved ? ? ? ? ? ? ? ? (0xe5) reserved ? ? ? ? ? ? ? ? (0xe4) reserved ? ? ? ? ? ? ? ? (0xe3) reserved ? ? ? ? ? ? ? ? (0xe2) tocpmcoe tocc7oe tocc6oe tocc5oe to cc4oe tocc3oe tocc2oe tocc1oe tocc0oe page 128 (0xe1) reserved ? ? ? ? ? ? ? ? (0xe0) reserved ? ? ? ? ? ? ? ? (0xdf) didr3 ? ? ? ? adc27d adc26d adc25d adc24d page 154 (0xde) didr2 adc23d adc22d adc21d adc20d adc19d adc18d adc17d adc16d page 154 (0xdd) reserved ? ? ? ? ? ? ? ? (0xdc) reserved ? ? ? ? ? ? ? ? (0xdb) reserved ? ? ? ? ? ? ? ? (0xda) reserved ? ? ? ? ? ? ? ? (0xd9) reserved ? ? ? ? ? ? ? ? (0xd8) reserved ? ? ? ? ? ? ? ? (0xd7) reserved ? ? ? ? ? ? ? ? (0xd6) reserved ? ? ? ? ? ? ? ? (0xd5) reserved ? ? ? ? ? ? ? ? (0xd4) reserved ? ? ? ? ? ? ? ? (0xd3) reserved ? ? ? ? ? ? ? ? (0xd2) reserved ? ? ? ? ? ? ? ? (0xd1) reserved ? ? ? ? ? ? ? ? (0xd0) reserved ? ? ? ? ? ? ? ? (0xcf) reserved ? ? ? ? ? ? ? ? (0xce) reserved ? ? ? ? ? ? ? ? (0xcd) reserved ? ? ? ? ? ? ? ? (0xcc) reserved ? ? ? ? ? ? ? ? (0xcb) reserved ? ? ? ? ? ? ? ? (0xca) reserved ? ? ? ? ? ? ? ? (0xc9) reserved ? ? ? ? ? ? ? ? (0xc8) reserved ? ? ? ? ? ? ? ? (0xc7) reserved ? ? ? ? ? ? ? ? (0xc6) udr usart data register pages 184 , 195 (0xc5) ubrrh ? ? ? ? usart baud register high page 189 , 198 (0xc4) ubrrl usart baud rate register low page 189 , 198 (0xc3) ucsrd rxsie rxs sfde ? ? ? ? ? page 188 (0xc2) ucsrc umsel1 umsel0 upm1 upm0 usbs ucsz1/udo ucsz0/ucp ucpol page 186 , 197 (0xc1) ucsrb rxcie txcie udrie rxen txen ucsz2 rxb8 txb8 page 185 , 196 (0xc0) ucsra rxc txc udre fe dor upe u2x mpcm page 184 , 196 (0xbf) reserved ? ? ? ? ? ? ? ? (0xbe) reserved ? ? ? ? ? ? ? ?
9 attiny828 [datasheet] 8371as?avr?08/12 (0xbd) twsd twi slave data register page 211 (0xbc) twsa twi slave address register page 210 (0xbb) twsam twi slave address mask register twae page 211 (0xba) twssra twdif twasif twch twra twc twbe twdir twas page 209 (0xb9) twscrb ? ? ? ? ? twaa twcmd1 twcmd0 page 208 (0xb8) twscra twshe ? twdie twasie twen twsie twpme twsme page 207 (0xb7) reserved ? ? ? ? ? ? ? ? (0xb6) reserved ? ? ? ? ? ? ? ? (0xb5) reserved ? ? ? ? ? ? ? ? (0xb4) reserved ? ? ? ? ? ? ? ? (0xb3) reserved ? ? ? ? ? ? ? ? (0xb2) reserved ? ? ? ? ? ? ? ? (0xb1) reserved ? ? ? ? ? ? ? ? (0xb0) reserved ? ? ? ? ? ? ? ? (0xaf) reserved ? ? ? ? ? ? ? ? (0xae) reserved ? ? ? ? ? ? ? ? (0xad) reserved ? ? ? ? ? ? ? ? (0xac) reserved ? ? ? ? ? ? ? ? (0xab) reserved ? ? ? ? ? ? ? ? (0xaa) reserved ? ? ? ? ? ? ? ? (0xa9) reserved ? ? ? ? ? ? ? ? (0xa8) reserved ? ? ? ? ? ? ? ? (0xa7) reserved ? ? ? ? ? ? ? ? (0xa6) reserved ? ? ? ? ? ? ? ? (0xa5) reserved ? ? ? ? ? ? ? ? (0xa4) reserved ? ? ? ? ? ? ? ? (0xa3) reserved ? ? ? ? ? ? ? ? (0xa2) reserved ? ? ? ? ? ? ? ? (0xa1) reserved ? ? ? ? ? ? ? ? (0xa0) reserved ? ? ? ? ? ? ? ? (0x9f) reserved ? ? ? ? ? ? ? ? (0x9e) reserved ? ? ? ? ? ? ? ? (0x9d) reserved ? ? ? ? ? ? ? ? (0x9c) reserved ? ? ? ? ? ? ? ? (0x9b) reserved ? ? ? ? ? ? ? ? (0x9a) reserved ? ? ? ? ? ? ? ? (0x99) reserved ? ? ? ? ? ? ? ? (0x98) reserved ? ? ? ? ? ? ? ? (0x97) reserved ? ? ? ? ? ? ? ? (0x96) reserved ? ? ? ? ? ? ? ? (0x95) reserved ? ? ? ? ? ? ? ? (0x94) reserved ? ? ? ? ? ? ? ? (0x93) reserved ? ? ? ? ? ? ? ? (0x92) reserved ? ? ? ? ? ? ? ? (0x91) reserved ? ? ? ? ? ? ? ? (0x90) reserved ? ? ? ? ? ? ? ? (0x8f) reserved ? ? ? ? ? ? ? ? (0x8e) reserved ? ? ? ? ? ? ? ? (0x8d) reserved ? ? ? ? ? ? ? ? (0x8c) reserved ? ? ? ? ? ? ? ? (0x8b) ocr1bh timer/counter1 ? output compare register b high byte page 128 (0x8a) ocr1bl timer/counter1 ? output compare register b low byte page 128 (0x89) ocr1ah timer/counter1 ? output compare register a high byte page 128 (0x88) ocr1al timer/counter1 ? output compare register a low byte page 128 (0x87) icr1h timer/counter1 ? input capture register high byte page 129 (0x86) icr1l timer/counter1 ? input capture register low byte page 129 (0x85) tcnt1h timer/counter1 ? counter register high byte page 128 (0x84) tcnt1l timer/counter1 ? counter register low byte page 128 (0x83) reserved ? ? ? ? ? ? ? ? (0x82) tccr1c foc1a foc1b ? ? ? ? ? ? page 127 (0x81) tccr1b icnc1 ices1 ? wgm13 wgm12 cs12 cs11 cs10 page 125 (0x80) tccr1a com1a1 com1a0 com1b1 com1b0 ? ? wgm11 wgm10 page 123 (0x7f) didr1 adc15d adc14d adc13d adc12d adc11d adc10d adc9d adc8d page 154 (0x7e) didr0 adc7d adc6d adc5d adc4d adc3d adc2d adc1d adc0d pages 136 , 154 (0x7d) admuxb ? ?refs ? ? ? ? mux5 page 150 (0x7c) admuxa ? ? ? mux4 mux3 mux2 mux1 mux0 page 149 (0x7b) adcsrb ? ? ? ? adlar adts2 adts1 adts0 page 153 (0x7a) adcsra aden adsc adate adif adie adps2 adps1 adps0 page 151 address name bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 page(s)
10 attiny828 [datasheet] 8371as?avr?08/12 (0x79) adch adc ? conversion result high byte page 151 (0x78) adcl adc ? conversion result low byte page 151 (0x77) reserved ? ? ? ? ? ? ? ? (0x76) reserved ? ? ? ? ? ? ? ? (0x75) reserved ? ? ? ? ? ? ? ? (0x74) reserved ? ? ? ? ? ? ? ? (0x73) pcmsk3 ? ? ? ? pcint27 pcint26 pcint25 pcint24 page 54 (0x72) reserved ? ? ? ? ? ? ? ? (0x71) reserved ? ? ? ? ? ? ? ? (0x70) reserved ? ? ? ? ? ? ? ? (0x6f) timsk1 ? ?icie1 ? ? ocie1b ocie1a toie1 page 129 (0x6e) timsk0 ? ? ? ? ? ocie0b ocie0a toie0 page 102 (0x6d) pcmsk2 pcint23 pcint22 pcint21 pcint20 pcint19 pcint18 pcint17 pcint16 page 54 (0x6c) pcmsk1 pcint15 pcint14 pcint13 pcint12 pcint11 pcint10 pcint9 pcint8 page 54 (0x6b) pcmsk0 pcint7 pcint6 pcint5 pcint4 pcint3 pcint2 pcint1 pcint0 page 55 (0x6a) reserved ? ? ? ? ? ? ? ? (0x69) eicra ? ? ? ? isc11 isc10 isc01 isc00 page 55 (0x68) pcicr ? ? ? ? pcie3 pcie2 pcie1 pcie0 page 56 (0x67) osccal1 ? ? ? ? ? ?cal11cal10 page 33 (0x66) osccal0 cal07 cal06 cal05 cal04 cal03 cal02 cal01 cal00 page 32 (0x65) reserved ? ? ? ? ? ? ? ? (0x64) prr prtwi ?prtim0 ? prtim1 prspi prusart0 pradc page 37 (0x63) reserved ? ? ? ? ? ? ? ? (0x62) reserved ? ? ? ? ? ? ? ? (0x61) clkpr ? ? ? ? clkps3 clkps2 clkps1 clkps0 page 31 (0x60) wdtcsr wdif wdie wdp3 ? wde wdp2 wdp1 wdp0 page 46 0x3f (0x5f) sreg i t h s v n z c page 15 0x3e (0x5e) sph ? ? ? ? ? ? sp9 sp8 page 14 0x3d (0x5d) spl sp7 sp6 sp5 sp4 sp3 sp2 sp1 sp0 page 14 0x3c (0x5c) reserved ? ? ? ? ? ? ? ? 0x3b (0x5b) reserved ? ? ? ? ? ? ? ? 0x3a (0x5a) reserved ? ? ? ? ? ? ? ? 0x39 (0x59) reserved ? ? ? ? ? ? ? ? 0x38 (0x58) reserved ? ? ? ? ? ? ? ? 0x37 (0x57) spmcsr spmie rwwsb rsig rwwsre rwflb pgwrt pgers spmen page 223 0x36 (0x56) ccp cpu change protection register page 14 0x35 (0x55) mcucr ? ? ? ? ? ? ivsel ?page 53 0x34 (0x54) mcusr ? ? ? ? wdrf borf extrf porf page 45 0x33 (0x53) smcr ? ? ? ? ?sm1sm0se page 37 0x32 (0x52) reserved ? ? ? ? ? ? ? ? 0x31 (0x51) dwdr debugwire data register page 213 0x30 (0x50) acsra acd acpmux2 aco aci acie acic acis1 acis0 page 134 0x2f (0x4f) acsrb hsel hlev aclp acnmux1 acnmux0 acpmux1 acpmux0 page 135 0x2e (0x4e) spdr spi data register page 163 0x2d (0x4d) spsr spif wcol ? ? ? ? ?spi2x page 162 0x2c (0x4c) spcr spie spe dord mstr cpol cpha spr1 spr0 page 161 0x2b (0x4b) gpior2 general purpose i/o register 2 page 25 0x2a (0x4a) gpior1 general purpose i/o register 1 page 25 0x29 (0x49) reserved 0x28 (0x48) ocr0b timer/counter0 ? output compare register b page 102 0x27 (0x47) ocr0a timer/counter0 ? output compare register a page 102 0x26 (0x46) tcnt0 timer/counter0 ? counter register page 101 0x25 (0x45) tccr0b foc0a foc0b ? ? wgm02 cs02 cs01 cs00 page 100 0x24 (0x44) tccr0a com0a1 com0a0 com0b1 com0b0 ? ? wgm01 wgm00 page 97 0x23 (0x43) gtccr tsm ? ? ? ? ? ?psr page 132 0x22 (0x42) reserved 0x21 (0x41) eearl eeprom address register low byte page 23 0x20 (0x40) eedr eeprom data register page 24 0x1f (0x3f) eecr ? ? eepm1 eepm0 eerie eempe eepe eere page 24 0x1e (0x3e) gpior0 general purpose i/o register 0 page 26 0x1d (0x3d) eimsk ? ? ? ? ? ? int1 int0 page 56 0x1c (0x3c) eifr ? ? ? ? ? ? int1 intf0 page 57 0x1b (0x3b) pcifr ? ? ? ? pcif3 pcif2 pcif1 pcif0 page 57 0x1a (0x3a) reserved ? ? ? ? ? ? ? ? 0x19 (0x39) reserved ? ? ? ? ? ? ? ? 0x18 (0x38) reserved ? ? ? ? ? ? ? ? 0x17 (0x37) reserved ? ? ? ? ? ? ? ? 0x16 (0x36) tifr1 ? ?icf1 ? ? ocf1b ocf1a tov1 page 130 address name bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 page(s)
11 attiny828 [datasheet] 8371as?avr?08/12 note: 1. for compatibility with future devices, reserved bits should be written to zero if accessed. reserved i/o memory addresses should never be written. 2. i/o registers within the address range 0x00 - 0x1f are direct ly bit-accessible using the sbi and cbi instructions. in these registers, the value of single bits can be checked by using the sbis and sbic instructions. 3. some of the status flags are cleared by writing a logical one to them. note that, unlike most other avrs, the cbi and sbi instructions will only operation the specified bit, and can therefore be used on registers containing such status flags. the cbi and sbi instructions work with registers 0x00 to 0x1f only. 0x15 (0x35) tifr0 ? ? ? ? ? ocf0b ocf0a tov0 page 103 0x14 (0x34) phde ? ? ? ? ? phdec ? ?page 81 0x13 (0x33) reserved ? ? ? ? ? ? ? ? 0x12 (0x32) reserved ? ? ? ? ? ? ? ? 0x11 (0x31) reserved ? ? ? ? ? ? ? ? 0x10 (0x30) reserved ? ? ? ? ? ? ? ? 0x0f (0x2f) pued ? ? ? ? pued3 pued2 pued1 pued0 page 82 0x0e (0x2e) portd ? ? ? ? portd3 portd2 portd1 portd0 page 82 0x0d (0x2d) ddrd ? ? ? ? ddd3 ddd2 ddd1 ddd0 page 82 0x0c (0x2c) pind ? ? ? ? pind3 pind2 pind1 pind0 page 83 0x0b (0x2b) puec puec7 puec6 puec5 puec4 puec3 puec2 puec1 puec0 page 83 0x0a (0x2a) portc portc7 portc6 portc5 portc4 portc3 portc2 portc1 portc0 page 83 0x09 (0x29) ddrc ddc7 ddc6 ddc5 ddc4 ddc3 ddc2 ddc1 ddc0 page 83 0x08 (0x28) pinc pinc7 pinc6 pinc 5 pinc4 pinc3 pinc2 pinc1 pinc0 page 84 0x07 (0x27) pueb pueb7 pueb6 pueb5 pueb4 pueb3 pueb2 pueb1 pueb0 page 84 0x06 (0x26) portb portb7 portb6 portb5 portb4 portb3 portb2 portb1 portb0 page 84 0x05 (0x25) ddrb ddb7 ddb6 ddb5 ddb4 ddb3 ddb2 ddb1 ddb0 page 84 0x04 (0x24) pinb pinb7 pinb6 pinb5 pinb4 pinb3 pinb2 pinb1 pinb0 page 85 0x03 (0x23) puea puea7 puea6 puea5 puea4 puea3 puea2 puea1 puea0 page 85 0x02 (0x22) porta porta7 porta6 porta5 porta4 porta3 porta2 porta1 porta0 page 85 0x01 (0x21) ddra dda7 dda6 dda5 dda4 dda3 dda2 dda1 dda0 page 85 0x00 (0x20) pina pina7 pina6 pina5 pina4 pina3 pina2 pina1 pina0 page 86 address name bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 page(s)
12 attiny828 [datasheet] 8371as?avr?08/12 5. instruction set summary mnemonics operands description operation flags #clocks arithmetic and logic instructions add rd, rr add two registers rd rd + rr z,c,n,v,h 1 adc rd, rr add with carry two registers rd rd + rr + c z,c,n,v,h 1 adiw rdl,k add immediate to word rdh:rdl rdh:rdl + k z,c,n,v,s 2 sub rd, rr subtract two registers rd rd - rr z,c,n,v,h 1 subi rd, k subtract constant from register rd rd - k z,c,n,v,h 1 sbc rd, rr subtract with carry two registers rd rd - rr - c z,c,n,v,h 1 sbci rd, k subtract with carry constant from reg. rd rd - k - c z,c,n,v,h 1 sbiw rdl,k subtract immediate from word rdh:rdl rdh:rdl - k z,c,n,v,s 2 and rd, rr logical and registers rd rd ? rr z,n,v 1 andi rd, k logical and register and constant rd rd ? k z,n,v 1 or rd, rr logical or registers rd rd v rr z,n,v 1 ori rd, k logical or register and constant rd rd v k z,n,v 1 eor rd, rr exclusive or registers rd rd rr z,n,v 1 com rd one?s complement rd 0xff ? rd z,c,n,v 1 neg rd two?s complement rd 0x00 ? rd z,c,n,v,h 1 sbr rd,k set bit(s) in register rd rd v k z,n,v 1 cbr rd,k clear bit(s) in register rd rd ? (0xff - k) z,n,v 1 inc rd increment rd rd + 1 z,n,v 1 dec rd decrement rd rd ? 1 z,n,v 1 tst rd test for zero or minus rd rd ? rd z,n,v 1 clr rd clear register rd rd rd z,n,v 1 ser rd set register rd 0xff none 1 branch instructions rjmp k relative jump pc pc + k + 1 none 2 ijmp indirect jump to (z) pc z none 2 rcall k relative subroutine call pc pc + k + 1 none 3 icall indirect call to (z) pc znone3 ret subroutine return pc stack none 4 reti interrupt return pc stack i 4 cpse rd,rr compare, skip if equal if (rd = rr) pc pc + 2 or 3 none 1/2/3 cp rd,rr compare rd ? rr z, n,v,c,h 1 cpc rd,rr compare with carry rd ? rr ? c z, n,v,c,h 1 cpi rd,k compare register with immediate rd ? k z, n,v,c,h 1 sbrc rr, b skip if bit in register cleared if (rr(b)=0) pc pc + 2 or 3 none 1/2/3 sbrs rr, b skip if bit in register is set if (rr(b)=1) pc pc + 2 or 3 none 1/2/3 sbic p, b skip if bit in i/o register cleared if (p(b)=0) pc pc + 2 or 3 none 1/2/3 sbis p, b skip if bit in i/o register is set if (p(b)=1) pc pc + 2 or 3 none 1/2/3 brbs s, k branch if status flag set if (sreg(s) = 1) then pc pc+k + 1 none 1/2 brbc s, k branch if status flag cleared if (sreg(s) = 0) then pc pc+k + 1 none 1/2 breq k branch if equal if (z = 1) then pc pc + k + 1 none 1/2 brne k branch if not equal if (z = 0) then pc pc + k + 1 none 1/2 brcs k branch if carry set if (c = 1) then pc pc + k + 1 none 1/2 brcc k branch if carry cleared if (c = 0) then pc pc + k + 1 none 1/2 brsh k branch if same or higher if (c = 0) then pc pc + k + 1 none 1/2 brlo k branch if lower if (c = 1) then pc pc + k + 1 none 1/2 brmi k branch if minus if (n = 1) then pc pc + k + 1 none 1/2 brpl k branch if plus if (n = 0) then pc pc + k + 1 none 1/2 brge k branch if greater or equal, signed if (n v= 0) then pc pc + k + 1 none 1/2 brlt k branch if less than zero, signed if (n v= 1) then pc pc + k + 1 none 1/2 brhs k branch if half carry flag set if (h = 1) then pc pc + k + 1 none 1/2 brhc k branch if half carry flag cleared if (h = 0) then pc pc + k + 1 none 1/2 brts k branch if t flag set if (t = 1) then pc pc + k + 1 none 1/2 brtc k branch if t flag cleared if (t = 0) then pc pc + k + 1 none 1/2 brvs k branch if overflow flag is set if (v = 1) then pc pc + k + 1 none 1/2 brvc k branch if overflow flag is cleared if (v = 0) then pc pc + k + 1 none 1/2 brie k branch if interrupt enabled if ( i = 1) then pc pc + k + 1 none 1/2 brid k branch if interrupt disabled if ( i = 0) then pc pc + k + 1 none 1/2 bit and bit-test instructions sbi p,b set bit in i/o register i/o(p,b) 1none2 cbi p,b clear bit in i/o register i/o(p,b) 0none2 lsl rd logical shift left rd(n+1) rd(n), rd(0) 0 z,c,n,v 1 lsr rd logical shift right rd(n) rd(n+1), rd(7) 0 z,c,n,v 1 rol rd rotate left through carry rd(0) c,rd(n+1) rd(n),c rd(7) z,c,n,v 1 ror rd rotate right through carry rd(7) c,rd(n) rd(n+1),c rd(0) z,c,n,v 1
13 attiny828 [datasheet] 8371as?avr?08/12 asr rd arithmetic shift right rd(n) rd(n+1), n=0..6 z,c,n,v 1 swap rd swap nibbles rd(3..0) rd(7..4),rd(7..4) rd(3..0) none 1 bset s flag set sreg(s) 1 sreg(s) 1 bclr s flag clear sreg(s) 0 sreg(s) 1 bst rr, b bit store from register to t t rr(b) t 1 bld rd, b bit load from t to register rd(b) tnone1 sec set carry c 1c1 clc clear carry c 0 c 1 sen set negative flag n 1n1 cln clear negative flag n 0 n 1 sez set zero flag z 1z1 clz clear zero flag z 0 z 1 sei global interrupt enable i 1i1 cli global interrupt disable i 0 i 1 ses set signed test flag s 1s1 cls clear signed test flag s 0 s 1 sev set twos complement overflow. v 1v1 clv clear twos complement overflow v 0 v 1 set set t in sreg t 1t1 clt clear t in sreg t 0 t 1 seh set half carry flag in sreg h 1h1 clh clear half carry flag in sreg h 0 h 1 data transfer instructions mov rd, rr move between registers rd rr none 1 movw rd, rr copy register word rd+1:rd rr+1:rr none 1 ldi rd, k load immediate rd knone1 ld rd, x load indirect rd (x) none 2 ld rd, x+ load indirect and post-inc. rd (x), x x + 1 none 2 ld rd, - x load indirect and pre-dec. x x - 1, rd (x) none 2 ld rd, y load indirect rd (y) none 2 ld rd, y+ load indirect and post-inc. rd (y), y y + 1 none 2 ld rd, - y load indirect and pre-dec. y y - 1, rd (y) none 2 ldd rd,y+q load indirect with displacement rd (y + q) none 2 ld rd, z load indirect rd (z) none 2 ld rd, z+ load indirect and post-inc. rd (z), z z+1 none 2 ld rd, -z load indirect and pre-dec. z z - 1, rd (z) none 2 ldd rd, z+q load indirect with displacement rd (z + q) none 2 lds rd, k load direct from sram rd (k) none 2 st x, rr store indirect (x) rr none 2 st x+, rr store indirect and post-inc. (x) rr, x x + 1 none 2 st - x, rr store indirect and pre-dec. x x - 1, (x) rr none 2 st y, rr store indirect (y) rr none 2 st y+, rr store indirect and post-inc. (y) rr, y y + 1 none 2 st - y, rr store indirect and pre-dec. y y - 1, (y) rr none 2 std y+q,rr store indirect with displacement (y + q) rr none 2 st z, rr store indirect (z) rr none 2 st z+, rr store indirect and post-inc. (z) rr, z z + 1 none 2 st -z, rr store indirect and pre-dec. z z - 1, (z) rr none 2 std z+q,rr store indirect with displacement (z + q) rr none 2 sts k, rr store direct to sram (k) rr none 2 lpm load program memory r0 (z) none 3 lpm rd, z load program memory rd (z) none 3 lpm rd, z+ load program memory and post-inc rd (z), z z+1 none 3 spm store program memory (z) r1:r0 none - in rd, p in port rd pnone1 out p, rr out port p rr none 1 push rr push register on stack stack rr none 2 pop rd pop register from stack rd stack none 2 mcu control instructions nop no operation none 1 sleep sleep (see specific descr. for sleep function) none 1 wdr watchdog reset (see specific descr. for wdr/timer) none 1 break break for on-chip debug only none n/a mnemonics operands description operation flags #clocks
14 attiny828 [datasheet] 8371as?avr?08/12 6. ordering information notes: 1. for speed vs. supply voltage, see section ?speed? on page 249 . 2. all packages are pb-free, halide-free and fully green and they comply with the european directive for restriction of hazardous substances (rohs). 3. indicates accuracy of internal oscillator. see ?accuracy of calibrated internal oscillator? on page 249 . 4. code indicators: z u: matte tin z r: tape & reel 5. these devices can also be supplied in wafer form. please c ontact your local atmel sales office for detailed ordering information and minimum quantities. 6.1 attiny828 speed (mhz) (1) supply voltage (v) (1) temperature range package (2) accuracy (3) ordering code (4) 20 mhz 1.7 ? 5.5v industrial (5) (-40 c to +85 c) 32a 10% attiny828-au 2% ATTINY828R-AU 10% attiny828-aur 2% ATTINY828R-AUr 32m1-a 10% attiny828-mu 2% attiny828r-mu 10% attiny828-mur 2% attiny828r-mur package type 32a 32-lead, thin (1.0 mm) plastic quad flat package (tqfp) 32m1-a 32-pad, 5 x 5 x 1.0 body, lead pitch 0.50 mm, quad flat no-lead (qfn)
15 attiny828 [datasheet] 8371as?avr?08/12 7. packaging information 7.1 32a 2325 orchard parkway san jose, ca 95131 title drawing no. r rev. 32a, 32-lead, 7 x 7mm body size, 1.0mm body thickness, 0.8mm lead pitch, thin profile plastic quad flat package (tqfp) c 32a 2010-10-20 pin 1 identifier 0~7 pin 1 l c a1 a2 a d1 d e e1 e b notes: 1. this package conforms to jedec reference ms-026, variation aba. 2. dimensions d1 and e1 do not include mold protrusion. allowable protrusion is 0.25mm per side. dimensions d1 and e1 are maximum plastic body size dimensions including mold mismatch. 3. lead coplanarity is 0.10mm maximum. a ? ? 1.20 a1 0.05 ? 0.15 a2 0.95 1.00 1.05 d 8.75 9.00 9.25 d1 6.90 7.00 7.10 note 2 e 8.75 9.00 9.25 e1 6.90 7.00 7.10 note 2 b 0.30 ? 0.45 c 0.09 ? 0.20 l 0.45 ? 0.75 e 0.80 typ common dimensions (unit of measure = mm) symbol min nom max note
16 attiny828 [datasheet] 8371as?avr?08/12 7.2 32m1-a 2325 orchard parkway san jose, ca 95131 title drawing no. r rev. 32m1-a , 32-pad, 5 x 5 x 1.0mm body, lead pitch 0.50mm, e 32m1-a 5/25/06 3.10mm exposed pad, micro lead frame package (mlf) common dimensions (unit of measure = mm) symbol min nom max note d1 d e1 e e b a3 a2 a1 a d2 e2 0.08 c l 1 2 3 p p 0 1 2 3 a 0.80 0.90 1.00 a1 ? 0.02 0.05 a2 ? 0.65 1.00 a3 0.20 ref b 0.18 0.23 0.30 d d1 d2 2.95 3.10 3.25 4.90 5.00 5.10 4.70 4.75 4.80 4.70 4.75 4.80 4.90 5.00 5.10 e e1 e2 2.95 3.10 3.25 e 0.50 bsc l 0.30 0.40 0.50 p ? ? 0.60 ? ? 12 o note: jedec standard mo-220, fig. 2 (anvil singulation), vhhd-2. top view side view bottom view 0 pin 1 id pin #1 notch (0.20 r) k 0.20 ? ? k k
17 attiny828 [datasheet] 8371as?avr?08/12 8. errata the revision letters in this section refer to the revision of the corresponding attiny828 device. 8.1 rev. a z port pin restrictions when ulp oscillator is disabled 1. port pin restrictions when ulp oscillator is disabled port pin pd3 is not guaranteed to perform as a reliable input when the ultra low power (ulp) oscillator is not run- ning. in addition, the pin is pulled down internally when ul p oscillator is disabled. twi and spi use may be limited when ulp is not running since pin pd3 is used by scl and sck signals. problem fix / workaround the ulp oscillator is automatically activated when requi red. to use pd3 as an input or clock signal of twi/spi, activate the watchdog timer. the watchdog timer automatically enables the ulp oscillator.
18 attiny828 [datasheet] 8371as?avr?08/12 9. revision history doc. rev. date comments 8371a 08/2012 initial document release.
19 attiny828 [datasheet] 8371as?avr?08/12
atmel corporation 1600 technology drive san jose, ca 95110 usa tel: (+1) (408) 441-0311 fax: (+1) (408) 487-2600 www.atmel.com atmel asia limited unit 01-5 & 16, 19f bea tower, millennium city 5 418 kwun tong roa kwun tong, kowloon hong kong tel: (+852) 2245-6100 fax: (+852) 2722-1369 atmel munich gmbh business campus parkring 4 d-85748 garching b. munich germany tel: (+49) 89-31970-0 fax: (+49) 89-3194621 atmel japan g.k. 16f shin-osaki kangyo bldg 1-6-4 osaki, shinagawa-ku tokyo 141-0032 japan tel: (+81) (3) 6417-0300 fax: (+81) (3) 6417-0370 ? 2012 atmel corporation. all rights reserved. / rev.: 8371as?avr?08/12 disclaimer: the information in this document is provided in co nnection with atmel products. no lic ense, express or implied, by estoppel or otherwise, to any intellectual property right is granted by this document or in connection with the sale of atmel products. exc ept as set forth in the atmel terms and conditions of sales locat ed on the atmel website, atmel assumes no liability whatsoever and disclaims any express, implied or statutory warranty relating to its products including, but not li mited to, the implied warranty of merchantability, fitness for a particular purpose, or non-infringement. in no event shall atmel be liable for any d irect, indirect, consequential, punitive, special or incide ntal damages (including, without limitation, damages for loss and profits, business i nterruption, or loss of information) arising out of the us e or inability to use this document, even if at mel has been advised of the possibility of suc h damages. atmel makes no representations or warranties with respect to the accuracy or completeness of the contents of this document and reserves the ri ght to make changes to specifications and products descriptions at any time without notice. atmel does not make any commitment to update th e information contained herein. un less specifically provided oth erwise, atmel products are not suitable for, and shall not be used in, automotive applications. atmel products are not intended, authorized, or warranted for use as components in applications intend ed to support or sustain life.


▲Up To Search▲   

 
Price & Availability of ATTINY828R-AU

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X